#ifndef __STDFIFO_H_
#define __STDFIFO_H_

#define FIFONAME_SIZE 10
enum OpenMode
{
    ReadOnly=1,
    WriteOnly
};
typedef enum OpenMode OpenM;

struct StdFIFO;
typedef struct StdFIFO FIFO;

FIFO *InitFIFO(const char *name);
int OpenFIFO(FIFO *f,OpenM mode);
int ReadFromFIFO(FIFO *f,void *ptr,unsigned long size);
int WriteFormFIFO(FIFO *f,void *ptr,unsigned long size);
void FreeFIFO(FIFO *f);


#endif